package com.rzj.book.en;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


//书籍实体类
public class Product implements Serializable{
	private Long pid;
	
	private String pname;//书名
	
	private Double market_price;//进货价
	
	private Double shop_price;//商城价
	
	private String image;//书的图片
	
	private String pdesc;//描述
	
	private Integer is_hot;//是否热门
	
	private Date pdate;//上架时间
	
	//@Column(name="pree")
	//private String pree;//出版社
	private Category category;

	@JSONField(serialize=false)
    private List<Msg> msglist=new ArrayList<Msg>();
    
	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Double getMarket_price() {
		return market_price;
	}

	public void setMarket_price(Double market_price) {
		this.market_price = market_price;
	}

	public Double getShop_price() {
		return shop_price;
	}

	public void setShop_price(Double shop_price) {
		this.shop_price = shop_price;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getPdesc() {
		return pdesc;
	}

	public void setPdesc(String pdesc) {
		this.pdesc = pdesc;
	}

	public Integer getIs_hot() {
		return is_hot;
	}

	public void setIs_hot(Integer is_hot) {
		this.is_hot = is_hot;
	}

	public Date getPdate() {
		return pdate;
	}

	public void setPdate(Date pdate) {
		this.pdate = pdate;
	}


	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public List<Msg> getMsglist() {
		return msglist;
	}

	public void setMsglist(List<Msg> msglist) {
		this.msglist = msglist;
	}
}
